package br.edu.unifei.mestrado.mn;

import br.edu.unifei.mestrado.commons.graph.GraphWrapper;
import br.edu.unifei.mestrado.commons.partition.AbstractPartition;
import br.edu.unifei.mestrado.commons.partition.AbstractPartitionIndex;
import br.edu.unifei.mestrado.kl.BKL;
import br.edu.unifei.mestrado.mem.graph.Graph;
import br.edu.unifei.mestrado.mem.graph.PartitionIndexMem;

public class BKLMemory extends BKL {

	protected GraphWrapper grafo;
	private AbstractPartitionIndex index = null;

	public BKLMemory(String graphFileName) {
		grafo = new Graph(GraphWrapper.NO_LEVEL, graphFileName);
		index = new PartitionIndexMem(AbstractPartition.TWO_WAY);
	}

	@Override
	protected GraphWrapper getGrafo() {
		return grafo;
	}

	@Override
	public AbstractPartitionIndex getPartitionIndex() {
		return index;
	}

	@Override
	public void initView(GraphWrapper initialGraph) {
	}

	@Override
	public void setShowView(boolean showView) {
	}

	@Override
	public void updateView(GraphWrapper grafo, int level, String it, int cutWeight) {
	}
	
	@Override
	public void updateViewCoarsed(GraphWrapper grafo, int level, String it, int cutWeight) {
	}

	@Override
	public void repaint() {
	}
}
